package com.rms.recruit_management_system.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@TableName("interview")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "面试类")
public class Interview implements Serializable {
    @TableId(value = "id",type= IdType.AUTO)
    @Schema(description = "面试id")
    private Integer id;

    @TableField(value = "user_id")
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "面试官姓名")
    private String name;

    @TableField(value = "candidate_name")
    @Schema(description = "候选人姓名")
    private String candidateName;
    @TableField(value = "position_name")
    @Schema(description = "职位名称")
    private String positionName;
    @TableField(value = "interview_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Schema(description = "面试时间")
    private Date interviewTime;
    @Schema(description = "面试状态")
    private Integer status;
    @TableField(value = "is_flag")
    @Schema(description = "删除标志")
    private Integer IsFlag;
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
